package com.sunzr0119.conventioncentertemplatebackend.service;
import com.sunzr0119.conventioncentertemplatebackend.dto.SubmittedUser;
import com.sunzr0119.conventioncentertemplatebackend.dto.UploadFileDTO;
import com.sunzr0119.conventioncentertemplatebackend.entity.File;
import org.springframework.core.io.Resource;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface FileService {
    UploadFileDTO uploadFile(MultipartFile file, String uploaderId);
    ResponseEntity<List<File>> getUsersFileList(String userId);
    void deleteFile(String fileId);
    ResponseEntity<List<SubmittedUser>> getSubmittedUsers();
    ResponseEntity<Resource> getFileResource(String fileId, boolean download);
}
